

<div *ngFor="let item of data">
	<li nz-submenu *ngIf="!(!item.children||item.children.length===0)">

		<span title *ngIf="depth==0"><i class="anticon anticon-user"></i>
			{{item.moduleName}}
		</span>
		<span title *ngIf="depth>0">
			{{item.moduleName}}
		</span>
		
		<ul>
			<tree-li-component [data]="item?.children" [depth]="depth+1"></tree-li-component>	
		</ul>

	</li>	
	<li nz-menu-item *ngIf="!item.children||item.children.length===0">
		<a [routerLink]="['/index'+item.moduleUrl+'/'+properties.pageNum+'/'+properties.pageSize]">
			{{item.moduleName}}
		</a>
	</li>	
</div>


<!-- <li nz-menu-item *ngIf="!item?.children" *ngFor="let item of data">
	<span title><i class="anticon anticon-user"></i>{{item.modelName}}</span>
</li> -->